#include <QtGui/QApplication>
#include <QtDeclarative/QDeclarativeView>
#include <QtDeclarative/QDeclarativeContext>
//#include "qmlapplicationviewer.h"
#include "dice.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QDeclarativeView view;
    view.rootContext()->setContextProperty("dice1",
                                           new Dice);

    view.setSource(QUrl::fromLocalFile("qml/DiceRoller/main.qml"));
    view.show();

    return app.exec();
}

/*
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer.setMainQmlFile(QLatin1String("qml/DiceRoller/main.qml"));
    viewer.rootContext()->setContextProperty("dice1", new Dice);
    viewer.showExpanded();

    return app.exec();
}
*/
